﻿<!DOCTYPE html>
<!----合规性评价及符合性评审管理_评审---->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <meta charset="utf-8" />
    <title></title>
    <style>
        .el-form-item__content {
            line-height: 28px !important;
        }
    </style>
</head>

<body>
    <div id="app" class="popupW150" v-cloak>
        <!-- class="popupW100"为label宽度为100px，共有popupW50、popupW100、popupW150、popupW200可选 -->
        <el-form label-position="right" :model="Form" status-icon :rules="rules" ref="ruleForm" label-width="100px"
            size="mini">


            <el-row>
                <el-col :span="11">
                    <p class="main-label">{{LawRegulationsTable.FileLeve+mark.m}}</p>
                    <p class="lh35">{{Form.fileLeveName}}</p>
                </el-col>
                <el-col :span="11" :ofset="2">
                    <p class="main-label">{{LawRegulationsTable.LawRegulationsName+mark.m}}</p>
                    <p class="lh35">{{Form.lawRegulationsName}}</p>
                </el-col>

                <el-col :span="11">
                    <p class="main-label">{{LawRegulationsTable.IssueSubject+mark.m}}</p>
                    <p class="lh35">{{Form.issueSubject}}</p>
                </el-col>
                <el-col :span="11" :ofset="2">
                    <p class="main-label">{{LawRegulationsTable.Symbol+mark.m}}</p>
                    <p class="lh35">{{Form.symbol}}</p>
                </el-col>
                <el-col :span="11">
                    <p class="main-label">{{LawRegulationsTable.IssueDate+mark.m}}</p>
                    <p class="lh35">{{Form.issueDate}}</p>
                </el-col>
                <el-col :span="11" :ofset="2">
                    <p class="main-label">{{LawRegulationsTable.ImplementationDate+mark.m}}</p>
                    <p class="lh35">{{Form.implementationDate}}</p>
                </el-col>

                <el-col :span="11">
                    <p class="main-label">{{LawRegulationsTable.ApplyClause+mark.m}}</p>
                    <p class="lh35">{{Form.applyClause}}</p>
                </el-col>

                <el-col :span="11" :ofset="2">
                    <p class="main-label">{{LawRegulationsTable.DescribeForWork+mark.m}}</p>
                    <p class="lh35">{{Form.describeForWork}}</p>
                </el-col>
            </el-row>
            <br>
            <br>
            <el-row>
                <el-col :span="24">
                    <div class="elst-select-mini">
                        <el-form-item :label="ComplianceAssessmentManag0603.CAM_Compliance+mark.m"
                            prop="caM_Compliance">
                            <el-radio-group v-model="Form.caM_Compliance">
                                <el-radio v-for="item in IsCAM_Compliance" :label="item.value" :value="item.key">
                                   {{item.value}}
                                </el-radio>
                            </el-radio-group>
                        </el-form-item>
                    </div>
                </el-col>

                <el-col :span="24">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <div class="el-input--mini el-input-group">
                                <div class="el-input-group__prepend">
                                    {{ComplianceAssessmentManag0603.CAM_ComplianceStatement+mark.m}}
                                </div>
                                <el-input class="el-textarea__inner" type="textarea"
                                    v-model="Form.caM_ComplianceStatement" autocomplete="off"></el-input>
                            </div>
                        </el-form-item>
                    </div>
                </el-col>
                <el-col :span="24">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <div class="el-input--mini el-input-group">
                                <div class="el-input-group__prepend">
                                    {{ComplianceAssessmentManag0603.CAM_Mark+mark.m}}
                                </div>
                                <el-input class="el-textarea__inner" type="textarea"
                                    v-model="Form.caM_Mark" autocomplete="off"></el-input>
                            </div>
                        </el-form-item>
                    </div>
                </el-col>


            </el-row>
            <!--<el-input type="text" v-model="Form.CAM_ReviewPerson" autocomplete="off"  value="张晓阳"  size="mini">
                </el-input>-->


            <!--<el-input type="text" v-model="Form.CAM_ReviewDate"  autocomplete="off"  value="2019-06-01"  size="mini">
                </el-input>-->

            <el-row type="flex" justify="end">
                <el-form-item>
                    <el-button type="primary" @click="onSubmitForm('ruleForm')">{{col.btnCommit}}</el-button>
                    <el-button type="primary" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}
                    </el-button>
                </el-form-item>
            </el-row>
        </el-form>
    </div>
    <script type="text/javascript">
        var gutid = gutid();//取随机主键
        function gutid() {
            return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
                var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
                return v.toString(16);
            });
        };

        //取序号
      //  var gunstN = parent.$LawRegulationsTable.Arrays.length
       // var gutNum = gunstN + 1;
        //var gutNum = gutNum();
        //function gutNum() {
        //    ufoiNum = ufoiNum + 1;
        //    return ufoiNum;
        //};




        var app = new Vue({
            value1: '',
            el: '#app',
            data: {
                //父业传参
                id: '',
                //获取下拉菜单sex
                // sex: [],
                //业务表单内容
                Form: {
                    //id: guidEmpty,
                    id: gutid,
                  // CAM_Id: gutNum, // '999999',
                  //  CAM_Id: '', // '999999',
                    caM_Compliance: '',
                    CAM_ComplianceStatement: '',
                    CAM_ReviewPerson: '测试人',
                    CAM_ReviewDate: '2019-05-30',
                    CAM_Mark: 'OKOK',
                   // IsCAM_Compliance: '',//是否符合情况
                },
                //表单验证
                rules: {

                    //CAM_Compliance: [
                    //    verification.NotNull
                    //],
                    CAM_ComplianceStatement: [
                        verification.NotNull
                    ],

                },
                IsCAM_Compliance: [],

            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                //提交数据
                onSubmitForm: function (formName) {
                    //console.log("xxxxx890xxxxxxx");
                    var mythis = this;
                    this.$refs[formName].validate(function (valid) {
                        //验证通过
                        if (valid) {

                            onSubmitForm(this, '/api/FL_StandardInformationWeb/ComSave', mythis.Form);
                        } else {
                            //验证失败

                            return false;
                        }
                    });
                },
                getData: function () {
                    //console.log("获取编辑数据开始");
                    getData(this, '/api/FL_StandardInformationWeb/get?id=' + this.id);
                    //this.Form.sex = this.Form.sex + "";
                    //console.log(this.id);
                    //console.log("获取编辑数据结束");
                }
            },
            mounted: function () {
                this.id = getUrlParam("id");
                this.getData();
           
                //获取下拉菜单内容
                //this.sex = getDicData('01');
                //console.log(id);
                //console.log(parent.$LawRegulationsTable.Arrays.length);
                //console.log(this.getData());
                //var list = getDicDataArray(['105']);
               //this.IsCAM_Compliance = getDicDatafromArray('105', list);//符合情况
                this.IsCAM_Compliance = [
                    {
                        value: '符合',
                        key:'1'
                    },
                    {
                        value: '不符合',
                        key:'0'
                    }
                ];

                //this.IsCAM_Compliance.value = '符合';
                console.log("xxxxxxxxxxxxxxxxxxxxx");
                console.log(this.IsCAM_Compliance);
                console.log("xxxxxxxxxxxxxxxxxxxxx");
             

            }
        });
    </script>
</body>

</html>